package com.yc.mapper;

import com.yc.entity.Detail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface DetailMapper extends BaseMapper<Detail> {

    int insertDetail(@Param("detail") Detail detail);

    List<Detail> getDetails(Integer userId);
}
